package top.wuhunyu.bean.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.wuhunyu.bean.service.A;
import top.wuhunyu.bean.service.B;

/**
 * @author gongzhiqiang
 * @date 2025-04-07 14:14
 */

@Service("b")
@Slf4j
public class BImpl implements B {

    static {
        log.info("{} is loaded", BImpl.class.getName());
    }

    private final A a;

    public BImpl(final A a) {
        this.a = a;
        log.info("{}'s constructor is invoked", this.getClass().getName());
    }
}
